<?php session_start(); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>

	<meta charset="utf-8">

    <title>Vendor Loads Page</title>

<?php echo link_tag(base_url().'skin.css'); ?>

<script type="text/javascript" src="<?php echo my_url(); ?>js/timeFormat.js"></script>

<script type="text/javascript" src="<?php echo my_url(); ?>js/1.js"></script>

<script type="text/javascript" src="../js/1.js"></script>

<script src="<?php echo my_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">

 var BaseURL='<?php echo base_url(); ?>';





function confirmDelete(vload_id){

	

	var x= window.confirm("Are you sure to delete this item?");

	if(x){

		window.location.href = BaseURL + "vendor_loads/delete_vendor_loads/" + vload_id;

	}	

}



</script>



<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />

<link href="skin.css" rel="stylesheet" type="text/css" />

</head>



<?php

//echo $_SESSION['administrator_log']."============";

if(!isset($_SESSION['administrator_log']))

{

		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";

}

else

{

?>

<body >



	<div class="BodyCover">

	

 		<div class="ParentContent">

	        <?php require("at_menu.php"); ?>

			<div class="MenuTab">

    			<div class="MenuBelow"><img src="<?php echo my_url();?>images/below-menu.gif"></div>        

             </div>



			<br /><br />	

			<div class="module-index1">

		  		<div align="right"><a href="<?php echo my_url()?>admin/logout" style="color:#FF0000;">logout</a></div><br/>

  	                <p class=""><?php if (isset($recordflag)) {echo $recordflag;}?><p>

			   <h1>Vendor Loads List:</h1>

                

		 <a href="<?php echo my_url() . "vendor_loads/add_vendor_loads/" ?>" >

         	<img src=" <?php echo my_url() ."images/icons/action_add.gif" ?>" style='border:none'/> Add New Data

         </a><br /> <br /><br />

                <div style='overflow:scroll;width:940px;height:400px;border:1pt solid #000;'>

                <table class='Grid' width='940px' border='1'>

                  <tr>

                        <th nowrap="nowrap">Add Payment</th>

                        <th >View</th>

                        <th >Edit</th>

                        <th >Delete</th>                        

	 				    <th nowrap="nowrap">Order Date</th>

                        <th nowrap="nowrap">Customer </th>

                        <th nowrap="nowrap">Job No.</th>

                        <th nowrap="nowrap">Nick Name</th>

                        <th nowrap="nowrap">Pick up City</th>

						<th nowrap="nowrap">Pick up State</th>

						<th nowrap="nowrap">Pick up Date</th>						

                        <th nowrap="nowrap">Drop off City</th>

						<th nowrap="nowrap">Drop off State</th>

                        <th nowrap="nowrap">Drop off Date</th>

                        <th nowrap="nowrap">Contract Amount</th>

						<th nowrap="nowrap">Rep / Employee Nick Name</th>

                        <th width='200'>Comment</th>

                  </tr>

<?php

        		  $_rowClass = 'tr_odd';

                foreach($list_vendor_loads as $row)

                {

                         $order_date = $row->order_date;

						 $client_id = $row->client_id;

						 $rejob_id = $row->rejob_id;

						 $n_name = $row->n_name;

						 $pick_up_city = $row->pick_up_city;

                         $pick_up_state = $row->pick_up_state;

                         $pick_up_date = $row->pick_up_date;

						 $drop_off_city = $row->drop_off_city;

						 $drop_off_state = $row->drop_off_state;

						 $drop_off_date = $row->drop_off_date;

 						 $contract_amount = $row->contract_amount;

						 $createdby_id = $row->createdby_id;

						 $comment_box = $row->comment_box;

?>					

					<tr class="<?php echo $_rowClass ?>"  <?php echo GetTrEffects() ?> >

						<td width='5'>

                            <a href="<?php echo my_url()."vendor_loads/view_vendor_payment/" .$row->vload_id?>">

                            <img src="<?php echo my_url(). "images/icons/action_add.gif" ?>" style='border:none'/></a>

                        </td>

                        <td width='5'>

                                <a href="<?php echo my_url() . "vendor_loads/view_vendor_loads/" .$row->vload_id ?>" >

                                <img src="<?php echo my_url() . "images/icons/view.gif" ?>" style='border:none'/></a>

						</td>

                        <td width='5'>

                        	<a href="<?php echo my_url() . "vendor_loads/edit_vendor_loads/" . $row->vload_id ?>">

                            	<img src="<?php echo my_url() . "images/icons/edit.gif" ?>" style='border:none' />

                             </a>

						</td>

                        <td width='5'>

                            	<a href="javascript:void(0)" onclick="confirmDelete(<?php echo $row->vload_id ?>);" >

								<img src="<?php echo my_url() . "images/icons/delete.gif" ?>" style='border:none' />

							</a>

						</td>

						<td nowrap="nowrap"><?php echo $order_date ?></td>

                        <td nowrap="nowrap"><?php echo $client_id?></td>

                        <td nowrap="nowrap"><?php echo $rejob_id?></td>

                        <td nowrap="nowrap"><?php echo $n_name?></td>

                        <td nowrap="nowrap"><?php echo $pick_up_city?></td>

                        <td nowrap="nowrap"><?php echo $pick_up_state?></td>

                        <td nowrap="nowrap"><?php echo $pick_up_date?></td>						

                        <td nowrap="nowrap"><?php echo $drop_off_city?></td>

						<td nowrap="nowrap"><?php echo $drop_off_state?></td>

						<td nowrap="nowrap"><?php echo $drop_off_date?></td>

						<td nowrap="nowrap" ><?php echo $contract_amount?></td>

						<td nowrap="nowrap"><?php echo $createdby_id?></td>

                        <td nowrap="nowrap" ><?php echo $comment_box?></td>

                  </tr>

<?php                  

				  if($_rowClass=="tr_odd") $_rowClass="tr_even"; else $_rowClass="tr_odd";     

                 }

?>

                 </table></div> 

       

    		<br>



            <div class="BodyContent">

            </div>	

			    		

		    <div class="Footer1">	

                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>

                 <a href="http://webmartis.com"> <img src="http://localhost/wodocontacts/images/wmlink.png"></a>

                 

                </div>                

            </div> <!---end of Footer1 ---->        

            

		</div><!---end of ParentContent ---->

    </div> <!---end of BodyCover ---->

 

</body>

<?php } ?>

</html>



